package com.chendx.store.utils;

import com.chendx.model.user.pojo.User;

/**
 * Created by chendx on 2022/4/26.
 */
public class AppThreadLocalUtils {

    private final static ThreadLocal<User> LOCAL = new ThreadLocal<>();

    public static void set(User apUser){
        LOCAL.set(apUser);
    }

    public static User get(){
        return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }
}
